package com.project.dto;


import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户订单表
 */

@Data

public class UserOrderEntity implements Serializable {



    private long orderId;


    private long userRef;//用户唯一编号

 
    private String orderRef;//订单唯一编号


    private double totalPrice;//付款总额


    private LocalDateTime orderTime = LocalDateTime.now();//订单时间


    private String status;//订单状态 //订单状态码,  0未发货   1 发货  2 已完成


    private String address;//收货地址


    private int modeOfPayment;//支付方式


    private List<UserOrderInfoProductEntity> userOrderInfoProductEntityList;//订单里的所有商品


    private UserDto userEntity;//用户订单对应的用户

  
    private UserOrderRefundEntity userOrderRefundEntity;//订单对应的退款订单

    public UserOrderEntity() {
    }

    public UserOrderEntity(long userRef, String orderRef, double totalPrice, String status, String address, int modeOfPayment) {
        this.userRef = userRef;
        this.orderRef = orderRef;
        this.totalPrice = totalPrice;
        this.status = status;
        this.address = address;
        this.modeOfPayment = modeOfPayment;
    }


}
